package com.gxaedu.rbac.pojo;


import java.sql.Timestamp;
import java.util.List;

public class User {

  private Long userId;
  private String userName;
  private String userPassword;
  private Timestamp createTime;
  private Timestamp lastLoginTime;

  /**
   * 用户拥有的角色
   */
  private List<Role> roles;

  public User() {
  }


  public List<Role> getRoles() {
    return roles;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }


  public java.sql.Timestamp getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.sql.Timestamp createTime) {
    this.createTime = createTime;
  }


  public java.sql.Timestamp getLastLoginTime() {
    return lastLoginTime;
  }

  public void setLastLoginTime(java.sql.Timestamp lastLoginTime) {
    this.lastLoginTime = lastLoginTime;
  }


  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", userPassword='" + userPassword + '\'' +
            ", createTime=" + createTime +
            ", lastLoginTime=" + lastLoginTime +
            ", roles=" + roles +
            '}';
  }
}
